"""
@Project: Rebar
@File: pagination_params.py
@Author: hzc
@Date: 2023/3/29 13:28
"""
from enum import Enum
from fastapi import Query
from pydantic import BaseModel

##未启用

class OrderByEnum(Enum):
    DESC = "desc",
    ASC = "asc"


class PaginationParam(BaseModel):  # 暂时没用到
    page_num: int = Query(..., ge=1, title="页码")
    page_size: int = Query(..., ge=5, le=20, title="每页数据量")
    order_by: OrderByEnum = Query(..., title="排序")
